package com.xkdx.guangguang.fragment.myinfomation;

import org.json.JSONArray;
import org.json.JSONObject;

import com.xkdx.guangguang.module.network.AbsModule;

public class DeleteInfoSelfModule extends AbsModule {

	private JSONObject object;
	public boolean isDelete = false;

	@Override
	public void parseData() throws Exception {
		backJson = (JSONArray) result;
		try {
			object = (JSONObject) backJson.get(0);
			parserInfo(object);
		} catch (Exception e) {
			throw e;
		}
	}
	

	private boolean parserInfo(JSONObject obj) throws Exception {

		if (obj == null) {
			return false;
		}
		JSONObject object = obj.getJSONObject("DetailInfo");
		if (!object.getString("StatusCode").equals("1")) {
			isDelete = false;
		} else {
			isDelete = true;
		}
		return isDelete;
	}
}
